import requests
import uncurl

def __query_uncurl__():
    curl_command = '''
            curl 'http://10.10.80.200:9088/api/yw/generaltask/process/commitTaskChildren?sub_proc_id=366&limitDecision=4&form_inst_id=65829&ins_proc_id=57755&ins_node_id=195328&proc_id=366&node_id=6&assignOrganize=fffffffff001&decision=13&assignUserId=1402206122085060608' \
  -H 'Accept: application/json' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Connection: keep-alive' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  -H 'Origin: http://10.10.80.200:9088' \
  -H 'Referer: http://10.10.80.200:9088/mochaITOM/ProcessManage/showPage/?processId=366&processStatus=wait&processInsId=57755&nodeId=6&nodeInsId=195328&sheetId=GS-231-241231-00003&showType=main' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' \
  -H 'combine-token: 39693864-1e1f-4d61-bc7c-c360cb19fa12,6e5d6dcf-5acc-4dea-b27e-4fbbb463f8fb' \
  --data-raw '[{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"62a2b08a-0a54-4884-92ca-7ea662979b8e","itemKey":"operationUser","seqId":0,"seqName":"基本信息","data":"哈**"},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"c6d9031d-cd62-4172-a3cd-c2412f1683a5","itemKey":"department","seqId":0,"seqName":"基本信息","data":"中国移动通信集团甘肃有限公司/**/**"},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"058e59be-1440-4f60-8f05-f28a387a1244","itemKey":"telephone","seqId":0,"seqName":"基本信息","data":"131********"},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"4c125743-f3b4-4631-8863-f9d71af86a2e","itemKey":"4c125743-f3b4-4631-8863-f9d71af86a2e","seqId":0,"seqName":"基本信息","data":"2024-12-31 10:01:41"},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"d4d650d4-7c5f-42b5-abe8-2644c657edb0","itemKey":"sendUserid","seqId":0,"seqName":"基本信息","data":"1430157287644860416"},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"6c3cc648-21a8-468f-aeca-c8b281594629","itemKey":"taskSource","seqId":0,"seqName":"基本信息","data":"0"},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"28a6dda5-0fb3-4772-8166-c8b1691b616d","itemKey":"rootSheetId","seqId":0,"seqName":"基本信息","data":"GS-231-241231-00003"},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"9118a306-fbb2-4613-a425-d7c9e505933d","itemKey":"processingInstruction","seqId":0,"seqName":"基本信息","data":""},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"8a95f1fa-13b9-4327-82b4-fd0695906109","itemKey":"processAttachment","seqId":0,"seqName":"基本信息","data":""},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"6affa5d6-2957-4840-8b62-eb371d118c14","itemKey":"6affa5d6-2957-4840-8b62-eb371d118c14","seqId":0,"seqName":"基本信息","data":""},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"e178ae66-765c-498f-8293-14616e8bf474","itemKey":"caseName","seqId":0,"seqName":"基本信息","data":""},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"fc6729f1-12f9-49bb-9045-052792f4caaa","itemKey":"hiddenFlag","seqId":0,"seqName":"基本信息","data":""},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"81ce2df8-6888-450b-b946-3d95f196f0cc","itemKey":"hiddenTitle","seqId":0,"seqName":"基本信息","data":""},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"d94fd300-0e11-46dc-a135-25600aef4342","itemKey":"hiddenTemplateId","seqId":0,"seqName":"基本信息","data":""},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"c6c396e5-c8c3-409e-bc1c-8c08d4161828","itemKey":"hiddenSheetId","seqId":0,"seqName":"基本信息","data":""},{"formInstId":65829,"insProcId":"57755","insNodeId":"195328","itemId":"abc851f0-941e-457c-ae9d-6c3e882db92f","itemKey":"transferReason","seqId":0,"seqName":"移交","data":"移交"},{"insProcId":"57755","insNodeId":"195328","itemId":"showCondition","itemKey":"showCondition","seqId":0,"data":"13"},{"data":"1402206122085060608","insNodeId":"195328","insProcId":"57755","itemId":"assignUserId","itemKey":"assignUserId","seqId":0,"seqName":"派发信息"}]' \
  --insecure
            '''

    req = uncurl.parse_context(curl_command)

    response = requests.request(
        method=req.method,
        url=req.url,
        headers=req.headers,
        data=req.data,
        verify=False
    )

    print(response.json())

if __name__ == '__main__':
    __query_uncurl__()